<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    

<c:set var="contextPath" value="${pageContext.request.contextPath}" />

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
	<title>인권과 평화의 대학 - 성공회대학교</title>
	<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-32515688-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
	
	<h1>
		<a href="${contextPath}/index.do">
			메인페이지		
		</a>
	</h1>
	
	<div>
		<a href="${contextPath}/undergraduate_notice/list.do">학사공지</a>
		<a href="${contextPath}/class_notice/list.do">수업공지</a>
		<a href="${contextPath}/scholarship_notice/list.do">장학공지</a>
		<a href="${contextPath}/general_notice/list.do">일반공지</a>
		<a href="${contextPath}/event_notice/list.do">행사공지</a>
	</div>
	
	<div>
		<a href="${contextPath}/scholarship_notice/list.do?searchBun=75">대학</a>
		<a href="${contextPath}/scholarship_notice/list.do?searchBun=76">대학원</a>
	</div>
	
	<c:forEach items="${valueList}" var="valueList">
		<div style="margin-bottom:10px;">
			<a href="${contextPath}/scholarship_notice/view.do?idx=${valueList.idx}&amp;searchBun=${searchBun}&amp;curPage=${paggingUtil.curPage}&amp;searchType=${searchType}&amp;searchWord=${searchWord}">${valueList.text}</a>
		</div>
	</c:forEach> 
	
	<div id="pagging">
		<a class="first" href="${contextPath}/scholarship_notice/list.do?searchBun=${searchBun}&amp;curPage=${paggingUtil.first}&amp;searchType=${searchType}&amp;searchWord=${searchWord}">&lt;&lt;</a>
		<a class="first" href="${contextPath}/scholarship_notice/list.do?searchBun=${searchBun}&amp;curPage=${paggingUtil.prev}&amp;searchType=${searchType}&amp;searchWord=${searchWord}">&lt;</a>
		
		<c:forEach begin="${paggingUtil.beginPage}" end="${paggingUtil.endPage}" var="num">
			<c:choose>
				<c:when test="${paggingUtil.curPage == num}">
					<a style="font-weight:bold;" href="${contextPath}/scholarship_notice/list.do?searchBun=${searchBun}&amp;curPage=${num}&amp;searchType=${searchType}&amp;searchWord=${searchWord}">${num}</a>				
				</c:when>
				<c:otherwise>
					<a href="${contextPath}/scholarship_notice/list.do?searchBun=${searchBun}&amp;curPage=${num}&amp;searchType=${searchType}&amp;searchWord=${searchWord}">${num}</a>
				</c:otherwise>
			</c:choose>
		</c:forEach> 
		
		<a class="first" href="${contextPath}/scholarship_notice/list.do?searchBun=${searchBun}&amp;curPage=${paggingUtil.next}&amp;searchType=${searchType}&amp;searchWord=${searchWord}">&gt;</a>
		<a class="first" href="${contextPath}/scholarship_notice/list.do?searchBun=${searchBun}&amp;curPage=${paggingUtil.last}&amp;searchType=${searchType}&amp;searchWord=${searchWord}">&gt;&gt;</a>
		
	</div> 
	
	<div id="search">
		<form action="${contextPath}/scholarship_notice/list.do" method="post">
			<input type="hidden" name="searchBun" value="${searchBun}" />
			
			<select id="searchType" name="searchType">
				<c:choose>
					<c:when test="${searchType == '1'}">
						<option value="1" selected="selected">제목</option>
						<option value="2">내용</option>
					</c:when>
					<c:otherwise>
						<option value="1">제목</option>
						<option value="2" selected="selected">내용</option>
					</c:otherwise>
				</c:choose>
			</select>
			
			<input type="text" id="searchWord" name="searchWord" value="${searchWord}" />
			<input type="submit" id="submit" value="확인" />
		</form>
	</div>
	
</body>
</html>